import { Injectable } from '@nestjs/common';
import { BaseService } from 'src/common/mongodb/BaseService';
import { Role, RoleDocument } from './entities/role.entity';
import { InjectModel } from '@nestjs/mongoose';
import { Model } from 'mongoose';

@Injectable()
export class RoleService extends BaseService<RoleDocument> {
  constructor(
    @InjectModel(Role.name)
    private roleModel: Model<RoleDocument>,
  ) {
    super(roleModel, ["powers"]);
  }
}
